if (CMAKE_HOST_WIN32)

	SET(REDISCXX_DIR ${THIRD_PARTY}/windows/x86/redis++)
	if(CMAKE_SIZEOF_VOID_P EQUAL 8)
		SET(REDISCXX_DIR ${THIRD_PARTY}/windows/x64/redis++)
	endif()

	SET(REDISCXX_INCLUDE_DIR ${REDISCXX_DIR}/include)
	SET(REDISCXX_LIB_DIR  ${REDISCXX_DIR}/lib)
	SET(REDISCXX_LIBS libcrypto libssl)
ELSE()

	IF(CMAKE_TOOLCHAIN_FILE)
		IF (CMAKE_SYSTEM_NAME STREQUAL Android)

			IF (ANDROID_ABI STREQUAL armeabi-v7a)
				SET(REDISCXX_DIR ${THIRD_PARTY}/android/redis++/armeabi-v7a)
			ELSEIF (ANDROID_ABI STREQUAL arm64-v8a)
				SET(REDISCXX_DIR ${THIRD_PARTY}/android/redis++/arm64-v8a)
			ENDIF()

			SET(REDISCXX_INCLUDE_DIR ${REDISCXX_DIR}/include)
			SET(REDISCXX_LIB_DIR ${REDISCXX_DIR}/lib)

		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv300")
			SET(REDISCXX_DIR ${THIRD_PARTY}/hisiv300/redis++)
			SET(REDISCXX_INCLUDE_DIR ${REDISCXX_DIR}/include)
			SET(REDISCXX_LIB_DIR ${REDISCXX_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv400")
			SET(REDISCXX_DIR ${THIRD_PARTY}/hisiv400/redis++)
			SET(REDISCXX_INCLUDE_DIR ${REDISCXX_DIR}/include)
			SET(REDISCXX_LIB_DIR ${REDISCXX_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv500")
			SET(REDISCXX_DIR ${THIRD_PARTY}/hisiv500/redis++)
			SET(REDISCXX_INCLUDE_DIR ${REDISCXX_DIR}/include)
			SET(REDISCXX_LIB_DIR ${REDISCXX_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv600")
			SET(REDISCXX_DIR ${THIRD_PARTY}/hisiv600/redis++)
			SET(REDISCXX_INCLUDE_DIR ${REDISCXX_DIR}/include)
			SET(REDISCXX_LIB_DIR ${REDISCXX_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "himix100")
			SET(REDISCXX_DIR ${THIRD_PARTY}/himix100/redis++)
			SET(REDISCXX_INCLUDE_DIR ${REDISCXX_DIR}/include)
			SET(REDISCXX_LIB_DIR ${REDISCXX_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "himix200")
			SET(REDISCXX_DIR ${THIRD_PARTY}/himix200/redis++)
			SET(REDISCXX_INCLUDE_DIR ${REDISCXX_DIR}/include)
			SET(REDISCXX_LIB_DIR ${REDISCXX_DIR}/lib)
		ENDIF()

	ELSE()
		FIND_PATH(REDISCXX_INCLUDE_DIR NAMES sw/redis++/redis++.h PATHS ${THIRD_PARTY}/gcc/redis++/include)
		FIND_PATH(REDISCXX_LIB_DIR NAMES libredis++.a PATHS ${THIRD_PARTY}/gcc/redis++/lib)
	ENDIF()	
	SET(REDISCXX_LIBS ${REDISCXX_LIB_DIR}/libredis++.a)
ENDIF()
